import Layout from '@/layout/default.vue'
import { UserOutlined } from '@ant-design/icons-vue'

export default [
    {
        path: '/user_management',
        name: 'UserManagement',
        redirect: '/user_management/agent',
        component: Layout,
        meta: {
            navTitle: '用户管理',
            order: 2,
            isSidebar: true,
            icon: () => h(UserOutlined)
        },
        children: [
            {
                path: '/user_management/agent',
                meta: {
                    title: '代理列表',
                    order: 201
                },
                component: () => import('@/view/userManagement/agent/agent.vue')
            },
            {
                path: '/user_management/administrators',
                meta: {
                    title: '管理员列表',
                    order: 202
                },
                component: () => import('@/view/userManagement/administrators/administrators.vue')
            },
            {
                path: '/user_management/user',
                meta: {
                    title: '用户列表',
                    order: 203
                },
                component: () => import('@/view/userManagement/user/user.vue')
            },
            {
                path: '/user_management/agent/add',
                component: () => import('@/view/userManagement/agent/addAgent.vue'),
                meta: {
                    title: '添加代理'
                }
            },
            {
                path: '/user_management/administrators/add',
                component: () => import('@/view/userManagement/administrators/addAdmin.vue'),
                meta: {
                    title: '添加管理员'
                }
            }
        ]

    }
]